package cn.kgc.viny.smbms.mapper;

import cn.kgc.viny.smbms.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    //根据id查找user对象
    User selectById(Long userId);
    //登录
    User selectUser(@Param("userCode") String userCode, @Param("userPassword") String userPassword);
    //查询用户
    List<User> select(@Param("condition") User condition);
    //添加
    void insert(User user);
    //查user count
    Integer selectUserCount(String userCode);
    //修改
    void update(User user);

    List<User> selectUsersByRoleId(Long roleId);
}
